package com.icoding.trangphuc

class Product {

	static mapping = {
		id column : 'article_id', generator : 'foreign',params :[ property : 'article']
		article insertable :false, updateable : false
	}

	static constraints = {
	}

	static belongsTo = [article:Article,category:Category]

	Integer price;
	
	boolean isHot;
	
	boolean isNew;
}
